package com.drw.start.dubbo.client.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.drw.start.dubbo.provider.service.DemoService;

@RestController
public class DubboClientController {

    @DubboReference
    private DemoService mDemoService;

    @RequestMapping("say_hello")
    public String sayHello() {
        return mDemoService.sayHello();
    }

}
